"""
spark_Util
"""
from pyspark import SparkConf, SparkContext


def get_spark_context() -> SparkContext:
    """
    构建pyspark程序的统一入口
    :return: sc:SparkContext
    """
    conf = SparkConf().setMaster("local[*]").setAppName("test_spark_app")
    sc = SparkContext(conf=conf)
    return sc
